package com.lanou.zakerproject.disport;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by dllo on 16/1/14.
 */
public class AllPlayData {
    List<String> title_group;
    Map<String, List<PlayData>> data;//存放所有数据

    public AllPlayData() {
        title_group = new ArrayList<>();
        data = new HashMap<>();
    }

    public int getGroupCount(){
        return title_group.size();
    }
    //    通过组号获得组的内容
    public String getGroupName(int position) {
        return title_group.get(position);
    }
    public PlayData getChild(int groupPositon,int childPosition){
        String s = title_group.get(groupPositon);
        PlayData playData = data.get(s).get(childPosition);
        return playData;
    }

}
